import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

import getters from './getters'
import mutations from './mutations'

import buildMessage from './module/build'  // 建筑模块存储记录在建筑extras中的信息
import cameraMessage from './module/camera'// 摄像头模块记录所有创建好的相机
import radarMessage from './module/radar'  // 雷达模块(同上)

const state = {
    CesiumShow: true
}

const store = new Vuex.Store({
    modules: {
        build: buildMessage,
        camera: cameraMessage,
        radar: radarMessage,
    },
    state,
    getters,
    mutations
})

export default store